import request from '@/router/axios';

export const list = (data) => request({
    url: '/scalper/list',
    method: 'post',
    data
}).then(data => {
    data.rows && data.rows.forEach(row => {
        row.MaxAward = row.MaxAward / 100;
        row.MinAward = row.MinAward / 100;
    });
    return data;
});
export const update = (data) => request({
    url: '/scalper/update',
    method: "post",
    data
});
export const remove = (Id) => request({
    url: '/scalper/delete',
    method: "post",
    data: {
        Id
    }
});
export function resolveScalper(ids) {
    return request.post('/scalper/resolve-scalpers', {
        Id: ids
    })
}
export function rejectScalper(ids, notes) {
    return request.post('/scalper/reject-scalpers', {
        Id: ids,
        Notes: notes
    });
}
export function unFrozenScalper(ids) {
    return request.post('/scalper/unfrozen-scalpers', {
        Id: ids
    });
}

export function frozenScalper(ids) {
    return request.post('/scalper/frozen-scalpers', {
        Id: ids
    });
}
